/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.nomaphelo.designpatterns.structural.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.nomaphelo.designpatterns.creational.factory.AnimalFactory;
import za.ac.cput.nomaphelo.designpatterns.structural.adapter.TemperatureClassReporter;
import za.ac.cput.nomaphelo.designpatterns.structural.adapter.TemperatureInfo;
import za.ac.cput.nomaphelo.designpatterns.structural.adapter.TemperatureObjectReporter;

/**
 *
 * @author spheshie
 */
@Configurable
public class StructuralConfig {
    
    @Bean(name = "classadapter")
    public TemperatureInfo tempInfo() {
        return new TemperatureClassReporter();
    }
    
    @Bean(name = "objectadapter")
    public TemperatureObjectReporter objectReporter() {
        return new TemperatureObjectReporter();
    }
    
    
    
}
